package com.zx.mes.hyl.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * test controller
 * @author huayunlong
 * @date 2018-6-23
 */
@RestController
@RequestMapping("/testController")
public class TestController {

    @GetMapping("/test")
    public String test(){
        return "test";
    }

    @GetMapping("hi")
    public String hello(){
        return "hello hello";
    }

    @GetMapping("/get")
    public String getByParams(String name){
        return "params:"+name;
    }
    @GetMapping("/get/{name}")
    public String getByParam(@PathVariable String name){
        return "params:"+name;
    }



}
